using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class SD_GradeDetMap : EntityTypeConfiguration<SD_GradeDet>
    {
        public SD_GradeDetMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            // Table & Column Mappings
            this.ToTable("SD_GradeDet");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.Points).HasColumnName("Points");
            this.Property(t => t.Oper_ID).HasColumnName("Oper_ID");
            this.Property(t => t.User).HasColumnName("User");
            this.Property(t => t.Date).HasColumnName("Date");
            this.Property(t => t.Breakup).HasColumnName("Breakup");
        }
    }
}
